package com.tianya.scheduled.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatisPlus配置
 *
 * ClassName: MyBatisPlusConfig <br/>
 * Description: <br/>
 * date: 2021/5/21 22:24<br/>
 *
 * @author tiany<br />
 */
@Configuration
@MapperScan(basePackages = "com.tianya.scheduled.mapper")
public class MyBatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
